<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h2>ejs模板渲染</h2>
    <h3><%=msg%></h3>
    <ul>
        <% for(var i=0;i<list.length;i++){%>
        <li><%=list[i].title%></li>
        <%}%>
    </ul>
    <h3></h3>
</body>

</html>